<template>
	<view class="dot-main">
		<view :class="['dot-item',current==index?'active':'']" v-for="(item,index) in list" :key="index"></view>
	</view>
</template>
<style>
	.dot-main {
		width: 100vw;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.dot-item {
		width: 14upx;
		height: 14upx;
		/* border: 1upx solid #FFFFFF; */
		margin: 0 6upx;
		border-radius:14px;
		background:#ccc;
		box-sizing: border-box;
	}
	.active {
		width:50upx;
		background:#fff;
	}
</style>
<script>
	export default {
		props: [ 'list','current'],
		data() {
			return {
				
			};
		}
	}
</script>